package com.itheima.mapper;


import com.itheima.domain.SysRole;
import org.apache.ibatis.annotations.Select;
import org.xmlunit.util.Mapper;


import java.util.List;


//@org.apache.ibatis.annotations.Mapper
public interface RoleMapper  {

    @Select("SELECT r.id, r.role_name roleName, r.role_desc roleDesc " +
            "FROM sys_role r, sys_user_role ur " +
            "WHERE r.id=ur.rid AND ur.uid=#{id}")
    public List<SysRole> findByUid(Integer id);
}
